February 3, 2006              Java C# Monitor needs defens.doc

RELIABLE JAVA SOLUTION : SIMULATED IN ADA
version PROGMONITORINGJavaCDefensive
RCHOP JAVA ADA

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION, BOOKING RIGHT STICK : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.000000000

                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  39568
 NbRequestSingletons :  60432
 NbStructuralRefusals :  100630
 NbCautiousRefusals :  88385
 Total number of denials =   189015
      Total simulation time is    429.932503000
      Mean allocation time is     217.352843000
      Allocation ratio is         0.505551084
      Philosopher  0  remains hungry during  216.992472000
      Philosopher  1  remains hungry during  217.192554000
      Philosopher  2  remains hungry during  217.804599000
      Philosopher  3  remains hungry during  217.405074000
      Philosopher  4  remains hungry during  217.369516000

real    7m10.223s
user    0m16.340s
sys     0m7.850s


****************************
*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION, BOOKING RIGHT STICK : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.000000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  38738
 NbRequestSingletons :  61262
 NbStructuralRefusals :  99779
 NbCautiousRefusals :  88381
 Total number of denials =   188160
      Total simulation time is    450.718460000
      Mean allocation time is     229.659362400
      Allocation ratio is         0.509540617
      Philosopher  0  remains hungry during  228.893613000
      Philosopher  1  remains hungry during  230.500169000
      Philosopher  2  remains hungry during  230.163860000
      Philosopher  3  remains hungry during  228.676785000
      Philosopher  4  remains hungry during  230.062385000

real    7m30.861s
user    0m17.390s
sys     0m8.430s


*************************************
**************************************
OLDER  VERSIONS 
January 29,2006 RELIABLE JAVA SOLUTION : SIMULATED IN ADA
version PROGMONITORINGCompJavaAda41 avec Get_LR seul 


*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION, BOOKING RIGHT STICK : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.001000000

RequestingDuration : constant Duration := 0.001; -- larger value

                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  22312
 NbRequestSingletons :  77688
 NbStructuralRefusals :  95643
 NbCautiousRefusals :  82539
 Total number of denials =   178182
      Total simulation time is    604.332609000
      Mean allocation time is     381.155961000
      Allocation ratio is         0.630705600
      Philosopher  0  remains hungry during  381.673327000
      Philosopher  1  remains hungry during  381.362383000
      Philosopher  2  remains hungry during  382.364419000
      Philosopher  3  remains hungry during  380.559121000
      Philosopher  4  remains hungry during  379.820555000

real    10m4.561s
user    0m25.500s
sys     0m13.390s
********************

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.000010000

RequestingDuration : constant Duration := 0.00001; -- medium value

                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  36285
 NbRequestSingletons :  63715
 NbStructuralRefusals :  92177
 NbCautiousRefusals :  79837
 Total number of denials =   172014
      Total simulation time is    479.959945000
      Mean allocation time is     253.819619600
      Allocation ratio is         0.528835004
      Philosopher  0  remains hungry during  254.051223000
      Philosopher  1  remains hungry during  254.498136000
      Philosopher  2  remains hungry during  252.995864000
      Philosopher  3  remains hungry during  252.602962000
      Philosopher  4  remains hungry during  254.949913000

real    8m0.146s
user    0m23.480s
sys     0m12.980s

*************************
*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.000000000

 RequestingDuration : constant Duration := 0.0; -- zero value

                CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  35810
 NbRequestSingletons :  64190
 NbStructuralRefusals :  101595
 NbCautiousRefusals :  89638
 Total number of denials =   191233
      Total simulation time is    564.106260000
      Mean allocation time is     309.784923600
      Allocation ratio is         0.549160584
      Philosopher  0  remains hungry during  311.736111000
      Philosopher  1  remains hungry during  309.563119000
      Philosopher  2  remains hungry during  311.389037000
      Philosopher  3  remains hungry during  308.299220000
      Philosopher  4  remains hungry during  307.937131000

real    9m24.946s
user    0m24.250s
sys     0m13.350s

**********************************************
OLD 
**********************************************
January 23,2006 RELIABLE JAVA SOLUTION : SIMULATED IN ADA
avec Get_LR et Get_R

A) RequestingDuration : constant Duration := 0.0; -- zero value
 requesting 0.000000000
Ordinateur-de-pacha:~ claudePB$ time ./diner

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.000000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  36087
 NbRequestSingletons :  63913
 NbStructuralRefusals :  102253
 NbCautiousRefusals :  90758
 Total number of denials =   193011
      Total simulation time is    569.579113000
      Mean allocation time is     314.589079000
      Allocation ratio is         0.552318495
      Philosopher  0  remains hungry during  313.697565000
      Philosopher  1  remains hungry during  316.650896000
      Philosopher  2  remains hungry during  316.107717000
      Philosopher  3  remains hungry during  313.637521000
      Philosopher  4  remains hungry during  312.851696000

real    9m29.743s
user    0m22.890s
sys     0m12.260s

*************
RequestingDuration : constant Duration := 0.00001; -- medium value

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.000010000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  35002
 NbRequestSingletons :  64998
 NbStructuralRefusals :  93313
 NbCautiousRefusals :  79391
 Total number of denials =   172704
      Total simulation time is    586.412210000
      Mean allocation time is     328.594048800
      Allocation ratio is         0.560346533
      Philosopher  0  remains hungry during  328.794289000
      Philosopher  1  remains hungry during  331.723020000
      Philosopher  2  remains hungry during  329.146180000
      Philosopher  3  remains hungry during  326.433826000
      Philosopher  4  remains hungry during  326.872929000

real    9m46.882s
user    0m26.200s
sys     0m15.650s

**************
RequestingDuration : constant Duration := 0.001; -- larger value

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.001000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  20251
 NbRequestSingletons :  79749
 NbStructuralRefusals :  97103
 NbCautiousRefusals :  85508
 Total number of denials =   182611
      Total simulation time is    727.203863000
      Mean allocation time is     477.543861600
      Allocation ratio is         0.656684990
      Philosopher  0  remains hungry during  476.496115000
      Philosopher  1  remains hungry during  474.811174000
      Philosopher  2  remains hungry during  478.130517000
      Philosopher  3  remains hungry during  477.164473000
      Philosopher  4  remains hungry during  481.117029000

real    12m7.465s
user    0m29.220s
sys     0m17.440s

******************************************
**********************
MESURES DU 23 JANVIER AVEC "COMPARING ADA JAVA MONITOR"

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 5.00000E-02 and eating 1.00000E-02 and requesting (with Java) 0.00000E+00
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  34
 NbRequestSingletons :  66
 NbStructuralRefusals :  26
 NbCautiousRefusals :  0
 Total number of denials =   26
      Total simulation duration is    0.696698000
      Allocation waiting duration is  0.124222000
      Philosopher  0  remains hungry during  0.023810000
      Philosopher  1  remains hungry during  0.033714000
      Philosopher  2  remains hungry during  0.008790000
      Philosopher  3  remains hungry during  0.034192000
      Philosopher  4  remains hungry during  0.023716000


*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 5.00000E-02 and eating 1.00000E-02
 and (when Java monitor semantics) requesting 0.00000E+00
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  35
 NbRequestSingletons :  65
 NbStructuralRefusals :  33
 NbCautiousRefusals :  0
 Total number of denials =   33
      Total simulation duration is    0.632962000
      Allocation waiting duration is  0.146090000
      Philosopher  0  remains hungry during  0.030325000
      Philosopher  1  remains hungry during  0.031157000
      Philosopher  2  remains hungry during  0.012385000
      Philosopher  3  remains hungry during  0.023164000
      Philosopher  4  remains hungry during  0.049059000

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 5.00000E-02 and eating 1.00000E-02
 and (when Java monitor semantics) requesting 1.00000E-05
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  38
 NbRequestSingletons :  62
 NbStructuralRefusals :  30
 NbCautiousRefusals :  0
 Total number of denials =   30
      Total simulation duration is    0.700450000
      Allocation waiting duration is  0.121516000
      Philosopher  0  remains hungry during  0.019345000
      Philosopher  1  remains hungry during  0.013918000
      Philosopher  2  remains hungry during  0.058056000
      Philosopher  3  remains hungry during  0.020339000
      Philosopher  4  remains hungry during  0.009858000

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 5.00000E-02 and eating 1.00000E-02
 and (when Java monitor semantics) requesting 1.00000E-03
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  38
 NbRequestSingletons :  62
 NbStructuralRefusals :  36
 NbCautiousRefusals :  2
 Total number of denials =   38
      Total simulation duration is    0.618827000
      Allocation waiting duration is  0.293193000
      Philosopher  0  remains hungry during  0.040307000
      Philosopher  1  remains hungry during  0.082702000
      Philosopher  2  remains hungry during  0.068096000
      Philosopher  3  remains hungry during  0.044839000
      Philosopher  4  remains hungry during  0.057249000

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 5.00000E-02 and eating 5.00000E-02
 and (when Java monitor semantics) requesting 1.00000E-03
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  43
 NbRequestSingletons :  57
 NbStructuralRefusals :  77
 NbCautiousRefusals :  58
 Total number of denials =   135
      Total simulation duration is    1.995624000
      Allocation waiting duration is  4.288824000
      Philosopher  0  remains hungry during  0.989830000
      Philosopher  1  remains hungry during  0.879761000
      Philosopher  2  remains hungry during  0.895312000
      Philosopher  3  remains hungry during  0.767902000
      Philosopher  4  remains hungry during  0.756019000

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.050000000 and eating 0.050000000
 and (when Java monitor semantics) requesting 0.001000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  49
 NbRequestSingletons :  51
 NbStructuralRefusals :  85
 NbCautiousRefusals :  56
 Total number of denials =   141
      Total simulation duration is    1.827890000
      Allocation waiting duration is  3.929434000
      Philosopher  0  remains hungry during  0.754225000
      Philosopher  1  remains hungry during  0.838408000
      Philosopher  2  remains hungry during  0.773471000
      Philosopher  3  remains hungry during  0.827374000
      Philosopher  4  remains hungry during  0.735956000

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.100000000 and eating 0.050000000
 and (when Java monitor semantics) requesting 0.001000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  52
 NbRequestSingletons :  48
 NbStructuralRefusals :  56
 NbCautiousRefusals :  23
 Total number of denials =   79
      Total simulation duration is    2.134993000
      Allocation waiting duration is  2.693355000
      Philosopher  0  remains hungry during  0.682724000
      Philosopher  1  remains hungry during  0.454260000
      Philosopher  2  remains hungry during  0.412801000
      Philosopher  3  remains hungry during  0.550286000
      Philosopher  4  remains hungry during  0.593284000

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.100000000 and eating 0.050000000
 and (when Java monitor semantics) requesting 0.000010000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  59
 NbRequestSingletons :  41
 NbStructuralRefusals :  69
 NbCautiousRefusals :  15
 Total number of denials =   84
      Total simulation duration is    1.983386000
      Allocation waiting duration is  1.963859000
      Philosopher  0  remains hungry during  0.550317000
      Philosopher  1  remains hungry during  0.358898000
      Philosopher  2  remains hungry during  0.291036000
      Philosopher  3  remains hungry during  0.408910000
      Philosopher  4  remains hungry during  0.354698000

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.100000000 and eating 0.050000000
 and (when Java monitor semantics) requesting 0.000000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  42
 NbRequestSingletons :  58
 NbStructuralRefusals :  78
 NbCautiousRefusals :  33
 Total number of denials =   111
      Total simulation duration is    2.183182000
      Allocation waiting duration is  2.440536000
      Philosopher  0  remains hungry during  0.513422000
      Philosopher  1  remains hungry during  0.596003000
      Philosopher  2  remains hungry during  0.487751000
      Philosopher  3  remains hungry during  0.341714000
      Philosopher  4  remains hungry during  0.501646000

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.100000000 and eating 0.050000000
 and (when Java monitor semantics) requesting 0.000000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  58
 NbRequestSingletons :  42
 NbStructuralRefusals :  61
 NbCautiousRefusals :  14
 Total number of denials =   75
      Total simulation time is    1.767288000
      Mean allocation time is     0.302468200
      Philosopher  0  remains hungry during  0.281894000
      Philosopher  1  remains hungry during  0.286761000
      Philosopher  2  remains hungry during  0.265319000
      Philosopher  3  remains hungry during  0.389250000
      Philosopher  4  remains hungry during  0.289117000

real    0m1.923s
user    0m0.030s
sys     0m0.020s

Ordinateur-de-pacha:~ claudePB$ time ./diner

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.100000000 and eating 0.050000000
 and (when Java monitor semantics) requesting 0.000000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  44
 NbRequestSingletons :  56
 NbStructuralRefusals :  71
 NbCautiousRefusals :  29
 Total number of denials =   100
      Total simulation time is    2.104654000
      Mean allocation time is     0.431954800
      Philosopher  0  remains hungry during  0.486098000
      Philosopher  1  remains hungry during  0.411542000
      Philosopher  2  remains hungry during  0.364133000
      Philosopher  3  remains hungry during  0.461080000
      Philosopher  4  remains hungry during  0.436921000

real    0m2.239s
user    0m0.000s
sys     0m0.020s

Ordinateur-de-pacha:~ claudePB$ time ./diner

*****   DINING PHILOSOPHERS WITH STICK ALLOCATION AS MANY AS AVAILABLE
*****   RELIABLE JAVA SOLUTION : SIMULATED IN ADA
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.100000000 and eating 0.050000000
 and (when Java monitor semantics) requesting 0.000000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100
 NbPairs :  51
 NbRequestSingletons :  49
 NbStructuralRefusals :  60
 NbCautiousRefusals :  19
 Total number of denials =   79
      Total simulation time is    1.861147000
      Mean allocation time is     0.325760000
      Philosopher  0  remains hungry during  0.384589000
      Philosopher  1  remains hungry during  0.361019000
      Philosopher  2  remains hungry during  0.415954000
      Philosopher  3  remains hungry during  0.287601000
      Philosopher  4  remains hungry during  0.179637000

real    0m1.992s
user    0m0.020s
sys     0m0.020s